package com.zhumengquan.wozhi.service;

import com.zhumengquan.wozhi.domain.User;
import com.zhumengquan.wozhi.mapper.FindUserByIdDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FindUserByIdService {
    @Autowired
    private FindUserByIdDao findUserByIdDao;

    public User getUser(int id){
        User result = findUserByIdDao.findUserById(id);
        System.out.println(result);
        return result;
    }
}
